package csse3004.GD.SysAdmin;

/**
 * @author s4201567 Tony Yu
 */
import org.springframework.validation.Validator;
import org.springframework.validation.Errors;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ManagePAValidator implements Validator {
    protected final Log logger = LogFactory.getLog(getClass());
    
    public boolean supports(Class clazz) {
        return ManagePA.class.equals(clazz);
    }
    
    public void validate(Object obj, Errors errors) {
        
//        ManagePA mpa = (ManagePA) obj;
//        int AdminIDS = mpa.getAdminID();
//        
//        logger.info("Validating input fields.");
//        logger.info(AdminIDS);
//
//        /* Checks if the input field is not below 0 */
//
//            logger.info("Processing...");
    }
}
